#ifndef DISPLAY_PAINT_H
#define DISPLAY_PAINT_H

#include <QPainter>
#include <QWidget>
#include <QMouseEvent>
#include <QDateTime>
#include "display_shared_settings.h"
#include "calculate/cal_wind_avg.h"

class Main_Area_Paint : public QWidget
{
    Q_OBJECT
public:
    explicit Main_Area_Paint(QWidget *parent = 0);
    ~Main_Area_Paint();

    void update_next_frame(int recv_data_num, QDateTime frame_time = QDateTime::currentDateTime());
    void update_hight_num();

    void paintEvent(QPaintEvent *);
    void mouseReleaseEvent(QMouseEvent *event);

signals:
    void show_detial_info(const QString &s);
    void mouseclicked(const QString &s);

public slots:
private:
    QImage **wind_h_image;

    double tranfrom_k;

    void resizeEvent(QResizeEvent *event);
    void create_one_frame_h_wind();
};

#endif // DISPLAY_PAINT_H
